home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / RLaB 1.18c / manual / disp.tex < prev    next >
LaTeX Document  |  1994-05-01  |  1.4 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: disp.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX document, ASCII text, with CR line terminators default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: plain text[CR] default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 64 69 73 70 20 2d 2d |\section|{disp --|
|00000010| 2d 20 44 69 73 70 6c 61 | 79 20 65 6e 74 69 74 79 |- Displa|y entity|
|00000020| 7d 0d 5c 6c 61 62 65 6c | 7b 66 6e 3a 64 69 73 70 |}.\label|{fn:disp|
|00000030| 7d 0d 5c 69 6e 64 65 78 | 7b 64 69 73 70 28 29 7d |}.\index|{disp()}|
|00000040| 0d 5c 69 6e 64 65 78 7b | 64 69 73 70 6c 61 79 20 |.\index{|display |
|00000050| 65 6e 74 69 74 79 7d 0d | 5c 62 65 67 69 6e 7b 72 |entity}.|\begin{r|
|00000060| 61 69 6c 7d 0d 44 69 73 | 70 20 3a 20 27 64 69 73 |ail}.Dis|p : 'dis|
|00000070| 70 27 20 27 28 27 20 28 | 20 53 74 72 69 6e 67 20 |p' '(' (| String |
|00000080| 7c 20 4d 61 74 72 69 78 | 20 29 20 27 29 27 20 3b || Matrix| ) ')' ;|
|00000090| 0d 5c 65 6e 64 7b 72 61 | 69 6c 7d 0d 0d 5c 76 65 |.\end{ra|il}..\ve|
|000000a0| 72 62 2b 64 69 73 70 2b | 20 69 73 20 61 20 75 73 |rb+disp+| is a us|
|000000b0| 65 66 75 6c 20 66 75 6e | 63 74 69 6f 6e 20 66 6f |eful fun|ction fo|
|000000c0| 72 20 77 72 69 74 69 6e | 67 20 6f 75 74 20 65 6e |r writin|g out en|
|000000d0| 74 69 74 69 65 73 2e 20 | 49 66 0d 74 68 65 20 61 |tities. |If.the a|
|000000e0| 72 67 75 6d 65 6e 74 20 | 69 73 20 61 20 6d 61 74 |rgument |is a mat|
|000000f0| 72 69 78 2c 20 74 68 65 | 6e 20 69 74 20 69 73 20 |rix, the|n it is |
|00000100| 70 72 69 6e 74 65 64 2c | 20 77 69 74 68 6f 75 74 |printed,| without|
|00000110| 20 74 68 65 0d 76 61 72 | 69 61 62 6c 65 20 6c 61 | the.var|iable la|
|00000120| 62 65 6c 2c 20 74 6f 20 | 73 74 61 6e 64 61 72 64 |bel, to |standard|
|00000130| 20 6f 75 74 70 75 74 2e | 20 49 66 20 74 68 65 20 | output.| If the |
|00000140| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 61 20 73 74 |argument| is a st|
|00000150| 72 69 6e 67 2c 0d 69 74 | 20 70 72 69 6e 74 73 20 |ring,.it| prints |
|00000160| 74 68 65 20 73 74 72 69 | 6e 67 20 74 6f 20 73 74 |the stri|ng to st|
|00000170| 61 6e 64 61 72 64 20 6f | 75 74 70 75 74 2e 20 20 |andard o|utput. |
|00000180| 54 68 65 20 72 65 74 75 | 72 6e 20 76 61 6c 75 65 |The retu|rn value|
|00000190| 20 66 72 6f 6d 20 74 68 | 69 73 0d 66 75 6e 63 74 | from th|is.funct|
|000001a0| 69 6f 6e 20 69 73 20 24 | 31 24 20 69 66 20 74 68 |ion is $|1$ if th|
|000001b0| 65 20 66 75 6e 63 74 69 | 6f 6e 20 73 75 63 63 65 |e functi|on succe|
|000001c0| 65 64 65 64 2c 20 6f 74 | 68 65 72 77 69 73 65 20 |eded, ot|herwise |
|000001d0| 69 74 20 69 73 20 7a 65 | 72 6f 2e 0d 0d 24 5c 4c |it is ze|ro...$\L|
|000001e0| 6f 6e 67 72 69 67 68 74 | 61 72 72 6f 77 24 20 54 |ongright|arrow$ T|
|000001f0| 68 69 73 20 69 73 20 6e | 6f 74 20 61 6e 20 5c 52 |his is n|ot an \R|
|00000200| 4c 61 42 5c 20 62 75 69 | 6c 74 2d 69 6e 20 66 75 |LaB\ bui|lt-in fu|
|00000210| 6e 63 74 69 6f 6e 2e 20 | 20 54 68 69 73 20 66 75 |nction. | This fu|
|00000220| 6e 63 74 69 6f 6e 0d 69 | 73 20 6e 6f 72 6d 61 6c |nction.i|s normal|
|00000230| 6c 79 20 6c 6f 61 64 65 | 64 20 6f 6e 20 73 74 61 |ly loade|d on sta|
|00000240| 72 74 2d 75 70 20 66 72 | 6f 6d 20 74 68 65 20 5c |rt-up fr|om the \|
|00000250| 76 65 72 62 2b 64 69 73 | 70 2e 72 2b 20 66 69 6c |verb+dis|p.r+ fil|
|00000260| 65 20 69 6e 20 74 68 65 | 0d 73 74 61 6e 64 61 72 |e in the|.standar|
|00000270| 64 20 5c 76 65 72 62 2b | 72 6c 69 62 2b 20 64 69 |d \verb+|rlib+ di|
|00000280| 72 65 63 74 6f 72 79 2e | 20 55 73 65 20 6f 66 20 |rectory.| Use of |
|00000290| 74 68 65 20 5c 76 65 72 | 62 2b 2d 72 2b 20 6f 70 |the \ver|b+-r+ op|
|000002a0| 74 69 6f 6e 2c 20 69 6e | 63 6f 72 72 65 63 74 6c |tion, in|correctl|
|000002b0| 79 20 0d 73 65 74 74 69 | 6e 67 20 74 68 65 20 5c |y .setti|ng the \|
|000002c0| 76 65 72 62 2b 52 4c 41 | 42 5f 4c 49 42 5f 44 49 |verb+RLA|B_LIB_DI|
|000002d0| 52 2b 20 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 61 6c |R+ envir|onmental|
|000002e0| 20 76 61 72 69 61 62 6c | 65 2c 20 6f 72 20 6d 6f | variabl|e, or mo|
|000002f0| 64 69 66 79 69 6e 67 0d | 5c 76 65 72 62 2b 64 69 |difying.|\verb+di|
|00000300| 73 70 2e 72 2b 20 6d 61 | 79 20 6d 61 6b 65 20 74 |sp.r+ ma|y make t|
|00000310| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 75 6e 61 |his func|tion una|
|00000320| 76 61 69 6c 61 62 6c 65 | 2e 0d 0d 0d 5c 70 61 72 |vailable|....\par|
|00000330| 61 67 72 61 70 68 7b 45 | 78 61 6d 70 6c 65 7d 0d |agraph{E|xample}.|
|00000340| 5c 69 6e 64 65 78 7b 65 | 78 61 6d 70 6c 65 20 6f |\index{e|xample o|
|00000350| 66 20 64 69 73 70 28 29 | 7d 0d 5c 69 6e 64 65 78 |f disp()|}.\index|
|00000360| 7b 64 69 73 70 28 29 21 | 65 78 61 6d 70 6c 65 7d |{disp()!|example}|
|00000370| 0d 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|00000380| 7d 0d 3e 20 61 20 3d 20 | 72 61 6e 64 28 32 2c 34 |}.> a = |rand(2,4|
|00000390| 29 0d 20 61 20 3d 0d 20 | 20 20 20 20 20 20 20 31 |). a =. | 1|
|000003a0| 20 20 20 20 20 20 30 2e | 36 34 37 20 20 20 20 20 | 0.|647 |
|000003b0| 30 2e 30 33 36 39 20 20 | 20 20 20 20 30 2e 36 36 |0.0369 | 0.66|
|000003c0| 35 20 20 0d 20 20 20 20 | 30 2e 39 37 35 20 20 20 |5 . |0.975 |
|000003d0| 20 20 20 30 2e 33 33 33 | 20 20 20 20 20 20 30 2e | 0.333| 0.|
|000003e0| 31 36 32 20 20 20 20 20 | 30 2e 30 38 34 37 20 20 |162 |0.0847 |
|000003f0| 0d 3e 20 64 69 73 70 28 | 61 29 0d 20 20 20 20 20 |.> disp(|a). |
|00000400| 20 20 20 31 20 20 20 20 | 20 20 30 2e 36 34 37 20 | 1 | 0.647 |
|00000410| 20 20 20 20 30 2e 30 33 | 36 39 20 20 20 20 20 20 | 0.03|69 |
|00000420| 30 2e 36 36 35 20 20 0d | 20 20 20 20 30 2e 39 37 |0.665 .| 0.97|
|00000430| 35 20 20 20 20 20 20 30 | 2e 33 33 33 20 20 20 20 |5 0|.333 |
|00000440| 20 20 30 2e 31 36 32 20 | 20 20 20 20 30 2e 30 38 | 0.162 | 0.08|
|00000450| 34 37 20 20 0d 20 20 20 | 20 20 20 20 20 31 0d 3e |47 . | 1.>|
|00000460| 20 64 69 73 70 28 61 29 | 3b 0d 20 20 20 20 20 20 | disp(a)|;. |
|00000470| 20 20 31 20 20 20 20 20 | 20 30 2e 36 34 37 20 20 | 1 | 0.647 |
|00000480| 20 20 20 30 2e 30 33 36 | 39 20 20 20 20 20 20 30 | 0.036|9 0|
|00000490| 2e 36 36 35 20 20 0d 20 | 20 20 20 30 2e 39 37 35 |.665 . | 0.975|
|000004a0| 20 20 20 20 20 20 30 2e | 33 33 33 20 20 20 20 20 | 0.|333 |
|000004b0| 20 30 2e 31 36 32 20 20 | 20 20 20 30 2e 30 38 34 | 0.162 | 0.084|
|000004c0| 37 20 20 0d 3e 20 62 20 | 3d 20 22 61 6e 79 20 73 |7 .> b |= "any s|
|000004d0| 74 72 69 6e 67 20 77 69 | 6c 6c 20 64 6f 22 0d 61 |tring wi|ll do".a|
|000004e0| 6e 79 20 73 74 72 69 6e | 67 20 77 69 6c 6c 20 64 |ny strin|g will d|
|000004f0| 6f 0d 3e 20 64 69 73 70 | 28 62 29 0d 61 6e 79 20 |o.> disp|(b).any |
|00000500| 73 74 72 69 6e 67 20 77 | 69 6c 6c 20 64 6f 0d 20 |string w|ill do. |
|00000510| 20 20 20 20 20 20 20 31 | 0d 3e 20 64 69 73 70 28 | 1|.> disp(|
|00000520| 62 29 3b 0d 61 6e 79 20 | 73 74 72 69 6e 67 20 77 |b);.any |string w|
|00000530| 69 6c 6c 20 64 6f 0d 5c | 65 6e 64 7b 76 65 72 62 |ill do.\|end{verb|
|00000540| 61 74 69 6d 7d 0d 0d 53 | 65 65 20 61 6c 73 6f 3a |atim}..S|ee also:|
|00000550| 20 50 61 67 65 7e 5c 70 | 61 67 65 72 65 66 7b 66 | Page~\p|ageref{f|
|00000560| 6e 3a 70 72 69 6e 74 66 | 7d 20 5c 76 65 72 62 2b |n:printf|} \verb+|
|00000570| 70 72 69 6e 74 66 28 29 | 2b 2c 0d 50 61 67 65 7e |printf()|+,.Page~|
|00000580| 5c 70 61 67 65 72 65 66 | 7b 66 6e 3a 70 72 69 6e |\pageref|{fn:prin|
|00000590| 74 6d 61 74 7d 20 5c 76 | 65 72 62 2b 70 72 69 6e |tmat} \v|erb+prin|
|000005a0| 74 6d 61 74 28 29 2b 2e | 0d 0d 0d 5c 6e 65 77 70 |tmat()+.|...\newp|
|000005b0| 61 67 65 0d 0d 0d 0d | |age.... | |
+--------+-------------------------+-------------------------+--------+--------+